package top.shen33.yang.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author oreilly
 * @since 2018-08-15
 */
public class MmallAdvert extends Model<MmallAdvert> {

private static final long serialVersionUID = 1L;

        @TableId(value = "id", type = IdType.UUID)
        private Integer id;
        private Integer position;
        private String detail;
        private String image;
        private String link;
        private Integer type;
        private Integer status;
        private Integer productId;
        private Integer activityId;
        private Date beginTime;
        private Date endTime;
        private Date createTime;
        private Date updateTime;


    public Integer getId() {
            return id;
            }

        public void setId(Integer id) {
            this.id = id;
            }

    public Integer getPosition() {
            return position;
            }

        public void setPosition(Integer position) {
            this.position = position;
            }

    public String getDetail() {
            return detail;
            }

        public void setDetail(String detail) {
            this.detail = detail;
            }

    public String getImage() {
            return image;
            }

        public void setImage(String image) {
            this.image = image;
            }

    public String getLink() {
            return link;
            }

        public void setLink(String link) {
            this.link = link;
            }

    public Integer getType() {
            return type;
            }

        public void setType(Integer type) {
            this.type = type;
            }

    public Integer getStatus() {
            return status;
            }

        public void setStatus(Integer status) {
            this.status = status;
            }

    public Integer getProductId() {
            return productId;
            }

        public void setProductId(Integer productId) {
            this.productId = productId;
            }

    public Integer getActivityId() {
            return activityId;
            }

        public void setActivityId(Integer activityId) {
            this.activityId = activityId;
            }

    public Date getBeginTime() {
            return beginTime;
            }

        public void setBeginTime(Date beginTime) {
            this.beginTime = beginTime;
            }

    public Date getEndTime() {
            return endTime;
            }

        public void setEndTime(Date endTime) {
            this.endTime = endTime;
            }

    public Date getCreateTime() {
            return createTime;
            }

        public void setCreateTime(Date createTime) {
            this.createTime = createTime;
            }

    public Date getUpdateTime() {
            return updateTime;
            }

        public void setUpdateTime(Date updateTime) {
            this.updateTime = updateTime;
            }

@Override
protected Serializable pkVal() {
            return this.id;
        }

@Override
public String toString() {
        return "MmallAdvert{" +
                ", id=" + id +
                ", position=" + position +
                ", detail=" + detail +
                ", image=" + image +
                ", link=" + link +
                ", type=" + type +
                ", status=" + status +
                ", productId=" + productId +
                ", activityId=" + activityId +
                ", beginTime=" + beginTime +
                ", endTime=" + endTime +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
        "}";
        }
        }
